package com.wetao.module_demo_cyh.contract;


import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.module_demo_cyh.bean.resp.MarkingListResp;

import java.util.HashMap;

/**
 * LoginContract
 */
public interface CyhMainContract {

    //方法命名以 请求方法+Result  命名
    interface View extends BaseViewImp {

        void getLoginResult(BaseResponse response);

        void getLoginFailed();

        void getMarkingListResult(BaseResponse response);

        void getMarkingListFailed();

    }

    //方法命名以 get+方法  命名
    abstract class Presenter extends BasePresenter<View> {
        public abstract void getLogin(HashMap<String, String> map, boolean isDialog, boolean cancelable);
        public abstract void getMarkingList(MarkingListResp resp, boolean isDialog, boolean cancelable);
    }
}
